﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        x:Class="Colorful.Control.ConfigureProxyWindow"
        Title="Configure Proxy"
        Width="317.739"
        Background="{x:Null}"
        WindowStyle="None"
        AllowsTransparency="True"
        MouseLeftButtonDown="Window_MouseDown"
        Height="90">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="ExpressionTheme.xaml" />
                <ResourceDictionary Source="Icons.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Border CornerRadius="5"
            BorderBrush="#333333"
            BorderThickness="2"
            Background="#444444">
        <Grid Background="Transparent">
            <Grid.RowDefinitions>
                <RowDefinition Height="0.69*" />
                <RowDefinition Height="0.31*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.295*" />
                <ColumnDefinition Width="0.705*" />
            </Grid.ColumnDefinitions>
            <Button Click="OkClick"
                    Content="OK"
                    Margin="0,5,5,0"
                    VerticalAlignment="Top"
                    HorizontalAlignment="Right"
                    Grid.Column="1"
                    Grid.Row="1"
                    Width="40" />
            <Button Click="CancelClick"
                    Content="Cancel"
                    Margin="0,5,50,0"
                    VerticalAlignment="Top"
                    HorizontalAlignment="Right"
                    Grid.Column="1"
                    Grid.Row="1"
                    Width="40" />
            <TextBlock Text="Proxy Address:"
                       Margin="5,8.499,5,0"
                       VerticalAlignment="Top" />
            <Grid Grid.Column="1"
                  Margin="0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="0.56*" />
                    <RowDefinition Height="0.44*" />
                </Grid.RowDefinitions>
                <TextBox Text="{Binding ProxyAddress}"
                         Margin="4"
                         d:LayoutOverrides="Height" />
                <CheckBox Content="Use default proxy"
                          Margin="0,0,5,0"
                          VerticalAlignment="Stretch"
                          Grid.Row="1"
                          d:LayoutOverrides="Height"
                          HorizontalAlignment="Right"
                          IsChecked="{Binding UseDefaultProxy}" />
            </Grid>
        </Grid>
    </Border>
</Window>